package cn.kgc.springcloudfaqs.controller;


import cn.kgc.springcloudfaqs.entity.Faqs;
import cn.kgc.springcloudfaqs.service.FaqsService;
import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * InnoDB free: 8192 kB 前端控制器
 * </p>
 *
 * @author wulong
 * @since 2024-01-06
 */
@RestController
@RequestMapping("/springcloudfaqs/faqs")
public class FaqsController {

    @Resource
    FaqsService faqsService;

    @PostMapping("/add")
    public R add(@RequestBody Faqs faqs){
        faqsService.saveFaqs(faqs);
        return R.ok(null);
    }
}

